package com.ali.business.controler;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @author nning_l@163.com
 * @date 2020年4月13日
 */
@RestController
public class TestController {

	@RequestMapping(value = "/hello")
	public String  sayHello() {
		int i=10;
		while(--i>0) {
			new Thread(() -> {
				try {
					Thread.sleep(3000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}, "thread "+i).start();
		}
		System.out.println("hello");
		return "ok";
	}
}
